Entity SentryAI
SentryAI is the Entity definition for a player-controller character's sentry AI.
Subclass of Entity.
Functions
GetCurrentTarget () | GetCurrentTarget returns the current target of the sentry AI. |
GetUserTarget () | GetUserTarget returns the user's target. |
GetRepathTime () | GetRepathTime returns the animation clock time for the next repath to the target. |
GetAimLocation () | GetAimLocation returns the aimed shot location for the sentry mode. |
GetAccuracy () | GetAccuracy returns the minimum accuracy for the sentry AI to shoot. |
GetMode () | GetMode returns the current sentry mode. |
Functions
- GetCurrentTarget ()
-
GetCurrentTarget returns the current target of the sentry AI.
Returns:
-
An Entity object indicating the current target.
- GetUserTarget ()
-
GetUserTarget returns the user's target.
Returns:
-
An Entity object indicating the user-defined target.
- GetRepathTime ()
-
GetRepathTime returns the animation clock time for the next repath to the target.
Returns:
-
A numeric value indicating the repath time.
- GetAimLocation ()
-
GetAimLocation returns the aimed shot location for the sentry mode.
Returns:
-
An integer indicating the aimed shot location (0-8).
- GetAccuracy ()
-
GetAccuracy returns the minimum accuracy for the sentry AI to shoot.
Returns:
-
An integer indicating the minimum accuracy.
- GetMode ()
-
GetMode returns the current sentry mode.
Returns:
-
An integer indicating the sentry mode (values not known).